package router

import (
	"choujiang/box_server/handler"

	"github.com/gin-gonic/gin"
)

func RegisterCommon(router *gin.RouterGroup) {
	r := router.Group("/common")
	r.POST("/user/code", handler.Code)
	r.POST("/user/setinfo", handler.SetUserInfo)
	r.GET("/exchange_scene", handler.ExchangeScene)
	r.GET("/ranking_list", handler.GetRanking)
	r.GET("/conins_log", handler.GetCoinsLog)
	r.GET("/alert_info", handler.GetAlertInfo)
	r.GET("/bind_channel", handler.UserBindChannel)
	r.GET("/links", handler.GetLinks)
	r.POST("/reload_entry", handler.Reload)
	r.GET("/earn/center", handler.EarnCenter)
	r.GET("/earn/friends", handler.EarnFriends)
	r.GET("/company_info", handler.CompanyInfo)
	r.GET("/user/prize", handler.PrizeUser)
	r.POST("/code", handler.CodeHandler)
}
